package org.ligson.busdemo2;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class LogEventListener implements ApplicationListener<LogEvent> {
    @Override
    public void onApplicationEvent(LogEvent event) {
        System.out.println(event);
    }
}
